package org.wicket.jbpm.engine.workflow.pages;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.spring.injection.annot.SpringBean;
import org.wicket.jbpm.service.user.UserService;
import org.wicket.jbpm.task.panel.CloseProcessInstancePanel;
import org.wicket.jbpm.task.panel.OpenProcessInstancePanel;

/**
 * @author Emmanuel Nollase - emanux
 * created: Jun 2, 2009 - 2:14:12 PM
 */
public class JbpmLogPage extends WebPage {

	@SpringBean private UserService userService;
	
	public JbpmLogPage() {
		
		add(new OpenProcessInstancePanel("openprocess"));
		
		add(new CloseProcessInstancePanel("closeprocess"));
		/*final List<String> users = userService.findForJbpmUser();
		
		final ListView lv = new ListView("jbpmusers", users){

			@Override
			protected void populateItem(ListItem item) {
				final String usr = item.getModelObjectAsString();
				final Link jbpmlink = new Link("usrlnk"){
					@Override
					public void onClick() {
						setResponsePage(new JbpmTaskLogPage(usr));
					}
				};
				jbpmlink.add(new Label("usr", usr));
				item.add(jbpmlink);
			}
		};
		add(lv);*/
	}
	
}

